/**
 * Copyright © 2013 Creativor Studio.
 * About license information, please see LICENSE.txt.
 */
package org.rayson.share.transport;


/**
 * Indicate that one object can be write to an {@link ByteArrayBuffer}.
 * 
 * @author creativor
 */
public interface BufferWritable {
	/**
	 * Write this object to byte array buffer.
	 * 
	 * @param buffer
	 *            Byte array buffer to write this object.
	 */
	public void writeTo(final ByteArrayBuffer buffer);
}
